package com.hjy.web.controller;

import com.hjy.from.CartAddForm;
import com.hjy.pojo.Cart;
import com.hjy.vo.CartVo;
import com.hjy.vo.ResponseVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.validation.Valid;

@Controller
public class CartController {

    @PostMapping("/carts")
    @ResponseBody
    public ResponseVo<CartVo> add(@Valid @RequestBody CartAddForm cartAddForm){
        return null;
    }
}
